package lee.vioson.remotedata.bean

import java.io.File

/**
 *Author:viosonlee
 *Date:2023/6/2
 *DESCRIPTION:
 */
sealed class DownloadState {
    data class InProgress(val progress: Int) : DownloadState()
    data class Success(val file: File,val contentLength:Long) : DownloadState()
    data class Error(val throwable: Throwable) : DownloadState()
    data class Cached(val file: File):DownloadState()
}
